package customer.zspt.cn.customer.Widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

import customer.zspt.cn.customer.R;



public class ContactListView extends ListView {


    private final ContactItemView group;
    private final ContactItemView TagView;
    private final ContactItemView ServexView;

    public ContactListView(Context context) {
        this(context,null);
    }
    public ContactListView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }
    public ContactListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        //群聊
        group = new ContactItemView(context);
        group.setIcon(R.drawable.group);
        group.setText("群聊");
        addHeaderView(group);
        //标签
        TagView = new ContactItemView(context);
        TagView.setIcon(R.drawable.tag);
        TagView.setText("标签");
        addHeaderView(TagView);
        ////标签
        ServexView = new ContactItemView(context);
        ServexView.setIcon(R.drawable.servex);
        ServexView.setText("服务号");
        addHeaderView(ServexView);
    }
}
